package com.shop.cereshop.business.dl.logic.service.Impl;

import com.shop.cereshop.business.dao.distributor.CereShopCommissionRecordDao;
import com.shop.cereshop.business.dl.logic.domain.CereShopCommissionRecord;
import com.shop.cereshop.business.dl.logic.service.CereShopCommissionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: 况鑫威
 * @Date: 2021/7/20
 * @Time: 10:09
 * @ClassName: CereShopCommissionRecordServiceImpl
 * @Description: com.shop.cereshop.app.dl.logic.service.Impl
 */
@Service
public class CereShopCommissionRecordServiceImpl implements CereShopCommissionRecordService {

    @Autowired
    private CereShopCommissionRecordDao cereShopCommissionRecordDao;


    @Override
    public int deleteByPrimaryKey(Long commissionRecordId) {
        return cereShopCommissionRecordDao.deleteByPrimaryKey(commissionRecordId);
    }

    @Override
    public int insert(CereShopCommissionRecord record) {
        return cereShopCommissionRecordDao.insert(record);
    }

    @Override
    public int insertSelective(CereShopCommissionRecord record) {
        return cereShopCommissionRecordDao.insertSelective(record);
    }

    @Override
    public CereShopCommissionRecord selectByPrimaryKey(Long commissionRecordId) {
        return cereShopCommissionRecordDao.selectByPrimaryKey(commissionRecordId);
    }

    @Override
    public int updateByPrimaryKeySelective(CereShopCommissionRecord record) {
        return cereShopCommissionRecordDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CereShopCommissionRecord record) {
        return cereShopCommissionRecordDao.updateByPrimaryKey(record);
    }


}
